(function() {
    let myChart = echarts.init(document.querySelector('.box-m5'))
    let option = {
    xAxis: {
        show: false,
    },
    yAxis: {
        type: 'category',
        data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日',],
        axisLabel: {
            color: "#9a9fb4",
            fontSize: "14"
        },
        "axisLine":{      
            "show":false
        },
        "axisTick":{   
            "show":false
        },
    },
    grid: {
        left: 100,
        bottom: 8
    },
    series: [
        {
            data: [57, 47, 28, 84, 39, 19, 12],
            type: 'bar',
            showBackground: true,
            color: '#6abaf2',
            backgroundStyle: { 
                color: '#1e2a6a'
            },
            label: {
                show: true,
                position: "outside", 
                color: '#ccc',
                fontWeight:'bold',
                formatter: "{c}%"
            },  
        }
    ]
    };

    myChart.setOption(option)   
    window.addEventListener('resize', () => {
        myChart.resize()
    })
})()